
.ticket_title
  %h2=@ticket.title



.ticket_description
  %p Descriptoin:
  = @ticket.description

.ticket_form
  - form_tag(ticket_path(@ticket), :method => :put) do

    %table
      %tr
        %td
          %label{ :for => 'ticket_status_id'} Status
        %td= select(:ticket, :status_id, status_list)
      %tr
        %td
          %label{ :for => 'ticket_assign_to_id'} Assign to
        %td= select(:ticket, :assign_to_id, user_list)
      %tr
        %td
          %label{ :for => 'ticket_change_comment'} Comment
        %td=  text_area(:ticket_change, :comment, :rows => 8)

    %p= submit_tag("Update")

%ul
- @ticket.ticket_changes.each do |ticket_change|
  %li
    .ticket_change
      = ticket_change.log
      = textilize( ticket_change.comment)
